package view.component.window
{
import mapengine.interfaces.IFactoryBuilding;

/**
 * FactoryProductUI
 * @author jliang
 *
 */
public class FactoryProductUI extends WindowComponent
{
	//==========================================================================
	//  Constructor
	//==========================================================================
	public function FactoryProductUI()
	{
		super();
	}
	//==========================================================================
	//  Properties
	//==========================================================================
	public function get data():IFactoryBuilding
	{
		return FactoryProductUIProxy(window).data;
	}
	
	public function set data(value:IFactoryBuilding):void
	{
		FactoryProductUIProxy(window).data = value;
	}
	//==========================================================================
	//  Overridden methods: DisplayObject
	//==========================================================================
	override protected function get skinReference():String
	{
		return "swf.ui.FactoryProductUISkin";
	}
	
	override protected function get proxyMapping():Array
	{
		return [ 
			{ skin:"", classRef: FactoryProductUIProxy, id:"window" }
		].concat(super.proxyMapping);
	}
	
	override public function get width():Number
	{
		return 490;
	}
	
	override public function get height():Number
	{
		return 525;
	}
}
}